package com.dq.repository.service;

import com.dq.domain.record.ServiceRecord;
import com.dq.domain.service.ServiceProject;
import com.dq.domain.service.ServiceProjectRecordCentre;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author liuhui
 * @date 2019/11/26 0026 12:41:31
 */
@Repository
public interface ServiceProjectRecordCentreRepository extends JpaRepository<ServiceProjectRecordCentre,Long> {
    /**
     * 根据服务记录IN和服务项目查询
     * @param serviceRecords
     * @return
     */
    List<ServiceProjectRecordCentre> findByServiceRecordInAndServiceProject(List<ServiceRecord> serviceRecords, ServiceProject serviceProject);

    /**
     * 根据服务记录IN查询
     * @param serviceRecords
     * @return
     */
    List<ServiceProjectRecordCentre> findByServiceRecordIn(List<ServiceRecord> serviceRecords);

    List<ServiceProjectRecordCentre> findByServiceRecord(ServiceRecord serviceRecord);


}
